//
//  GoodsDetailSlectSkuHeaderTitleView.m
//  ABSallRec
//
//  Created by 我演示 on 2019/11/12.
//  Copyright © 2019 Jerry-Fu. All rights reserved.
//

#import "GoodsDetailSlectSkuHeaderTitleView.h"

@interface GoodsDetailSlectSkuHeaderTitleView ()
/**名称label*/
@property(nonatomic,weak) UILabel *showTitleLabel ;

@end


//适配屏幕宽高比
#define widthRatio SCREEN_WIDTH/375.00


@implementation GoodsDetailSlectSkuHeaderTitleView

-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame: frame]) {
        [self makeUpUI];
        [self makeUpSubviews];
        
    }
    return self ;
}
-(void)makeUpUI {
    
    UILabel *showLabel = [[UILabel alloc] initWithTextString:@"展示头" andTextColor:[UIColor colorWithHexString:@"#000000"] andTextFont:13];
    showLabel.font = [UIFont fontWithName:@"PingFang-SC-Bold" size:15];
    
    [self addSubview:showLabel];
    self.showTitleLabel = showLabel ;
    
}

-(void)makeUpSubviews {
    [self.showTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.bottom.equalTo(self).offset(0);
        make.left.equalTo(self.mas_left).offset(18);
    }];
}

-(void)setModel:(DetailSkuSelectModel *)model {
    _model = model;
    self.showTitleLabel.text = [NSString stringWithFormat:@"%@:",model.key];
//    model.key ;
    
}

@end
